import { createApp } from "vue";
import App from "./App.vue";
import ArcoVue from "@arco-design/web-vue";
import "@arco-design/web-vue/dist/arco.less";
import MavonEditor from "mavon-editor";
import "mavon-editor/dist/css/index.css";
import MermaidIt from "./packages";

const instance = createApp(App).use(ArcoVue).use(MavonEditor);
const markdownIt = (MavonEditor.mavonEditor as any).getMarkdownIt();
console.log("markdownIt:", markdownIt);
markdownIt?.use(MermaidIt);
instance.mount("#app");
